//
//  WENEssenceViewController.m
//  仿百思不得姐
//
//  Created by wen on 2018/2/9.
//  Copyright © 2018年 wen. All rights reserved.
//

#import "WENEssenceViewController.h"
#import "UIBarButtonItem+WENExtension.h"
@interface WENEssenceViewController ()

@end

@implementation WENEssenceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor orangeColor];
    
    //设置导航栏图片
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"MainTitle"]];
    
    
    //设置左边按钮
//    UIButton *btn = [[UIButton alloc] init];
//    [btn setImage:[UIImage imageNamed:@"MainTagSubIcon"] forState:UIControlStateNormal];
//    [btn setImage:[UIImage imageNamed:@"MainTagSubIconClick"] forState:UIControlStateHighlighted];
//    btn.bounds = CGRectMake(0, 0, btn.currentImage.size.width, btn.currentImage.size.height);
//    [btn addTarget:self action:@selector(btnClick) forControlEvents:UIControlEventTouchUpInside];
    
    self.navigationItem.leftBarButtonItem =  [UIBarButtonItem itemWithImageNamed:@"MainTagSubIcon" target:self action:@selector(btnClick) ];
}

- (void)btnClick{

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
